

<div class="view-handle-main">
    <div class="view-search">

    </div>
    
    <div class="view-handle">
        <div class="view-header-item no-widen" ng-click="submit()" title="同步用户到角色">
            <i class="fa fa-refresh"></i>
        </div>
    </div>

</div>

<div class="view-content">
    <div class="view-left privilege-left">
        <div class="view-left-search">
            <input type="text" placeholder='Search' ng-model="user_name_filter">
            <i class="fa fa-search"></i>
        </div>
        <div class="view-left-block">
             <user-inc ng-model='forms.data' user="forms.user"></user-inc>
            <!-- <div class="view-left-item"
                 ng-repeat="item in user_data |orderBy:['username'] | filter:user_name_filter"
                 ng-click='user_ranks_show(item)'
                 ng-class="{true: 'marked', false: ''}[item.iscolor]">
                <li>
                    <i class="fa fa-user"></i>
                </li>
                <li class="view-left-item-user">
                    {{item.name}}
                </li>
                <li>
                    门店:{{item.shop_name}}
                </li>
            </div> -->
        </div>
    </div>
    <div class="privilege-right">
        <div class="privilege-right-content">
            <div class="view-left-search privilege-und-bg">
                <input type="text" placeholder='未分配的岗位' ng-model="ranks_und">
            </div>
            <div class="privilege-right-block">
                <div class="privilege-right-item" ng-repeat="item in cur_user_unassigned_ranks |orderBy:['name'] |filter:ranks_und" ng-click="add_rank(item)">
                    <li class="privilege-right-name">{{item.name}}</li>
                    <li class="privilege-right-plus">
                        <i class="fa fa-plus"></i>
                    </li>
                </div>
            </div>
        </div>
        <div class="privilege-right-content">
            <div class="view-left-search">
                <input type="text" placeholder='已有岗位' ng-model="ranks_exi">
            </div>
            <div class="privilege-right-block">
                <div class="privilege-right-item" ng-repeat="item in cur_user_assigned_ranks |orderBy:['name'] |filter:ranks_exi" ng-click="remove_rank(item)">
                    <li class="privilege-right-name">{{item.name}}</li>
                    <li class="privilege-right-plus">
                        <i class="fa fa-minus"></i>
                    </li>
                </div>
            </div>
        </div>
        <div class="privilege-right-content">
            <div class="view-left-search privilege-role-bg">
                <input type="text" placeholder='角色' ng-model="role" style="background: #b5b5b5;">
            </div>
            <div class="privilege-right-block">
                <div class="privilege-right-item" ng-repeat="item in cur_user_roles |orderBy:['rolename'] |filter:role">
                    <li class="privilege-right-name">{{item.rolename}}</li>
                </div>
            </div>
        </div>
    </div>
</div>



            <!-- <user-inc ng-model='forms.data' user="forms.user" del="delete(item)" mode="forms.del"></user-inc> -->
        